package cn.com.guage.dtm.mapping.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.com.guage.dtm.common.annotation.Excel;
import cn.com.guage.dtm.common.core.domain.BaseEntity;

/**
 * 迁移作业管理对象 mapping_trans_task
 * 
 * @author liujun
 * @date 2021-07-14
 */
public class MappingTransTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 作业ID */
    private Long taskId;

    /** 作业代码 */
    @Excel(name = "作业代码")
    private String taskCode;

    /** 作业名称 */
    @Excel(name = "作业名称")
    private String taskName;

    /** 作业说明 */
    @Excel(name = "作业说明")
    private String taskRemark;

    /** 系统id */
    @Excel(name = "系统id")
    private Long sysId;

    /** 系统code */
    @Excel(name = "系统code")
    private String sysCode;

    /** 系统名称 */
    @Excel(name = "系统名称")
    private String sysName;

    /** 模块id */
    @Excel(name = "模块id")
    private Long moduleId;

    /** 模块code */
    @Excel(name = "模块code")
    private String moduleCode;

    /** 模块名称 */
    @Excel(name = "模块名称")
    private String moduleName;

    /** 表id */
    @Excel(name = "表id")
    private Long tableId;

    /** 表code */
    @Excel(name = "表code")
    private String tableCode;

    /** 表名称 */
    @Excel(name = "表名称")
    private String tableName;

    /** 主sql */
    @Excel(name = "主sql")
    private String taskSql;

    /** 事务提交频率 */
    @Excel(name = "事务提交频率")
    private Long transSubmitRatio;

    /** 作业类名 */
    @Excel(name = "作业类名")
    private String taskClassName;

    /** 类包名 */
    @Excel(name = "类包名")
    private String taskLibName;

    /** 作业拆分个数 */
    @Excel(name = "作业拆分个数")
    private Long taskPartitionNum;

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setTaskCode(String taskCode) 
    {
        this.taskCode = taskCode;
    }

    public String getTaskCode() 
    {
        return taskCode;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setTaskRemark(String taskRemark) 
    {
        this.taskRemark = taskRemark;
    }

    public String getTaskRemark() 
    {
        return taskRemark;
    }
    public void setSysId(Long sysId) 
    {
        this.sysId = sysId;
    }

    public Long getSysId() 
    {
        return sysId;
    }
    public void setSysCode(String sysCode) 
    {
        this.sysCode = sysCode;
    }

    public String getSysCode() 
    {
        return sysCode;
    }
    public void setSysName(String sysName) 
    {
        this.sysName = sysName;
    }

    public String getSysName() 
    {
        return sysName;
    }
    public void setModuleId(Long moduleId) 
    {
        this.moduleId = moduleId;
    }

    public Long getModuleId() 
    {
        return moduleId;
    }
    public void setModuleCode(String moduleCode) 
    {
        this.moduleCode = moduleCode;
    }

    public String getModuleCode() 
    {
        return moduleCode;
    }
    public void setModuleName(String moduleName) 
    {
        this.moduleName = moduleName;
    }

    public String getModuleName() 
    {
        return moduleName;
    }
    public void setTableId(Long tableId) 
    {
        this.tableId = tableId;
    }

    public Long getTableId() 
    {
        return tableId;
    }
    public void setTableCode(String tableCode) 
    {
        this.tableCode = tableCode;
    }

    public String getTableCode() 
    {
        return tableCode;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setTaskSql(String taskSql) 
    {
        this.taskSql = taskSql;
    }

    public String getTaskSql() 
    {
        return taskSql;
    }
    public void setTransSubmitRatio(Long transSubmitRatio) 
    {
        this.transSubmitRatio = transSubmitRatio;
    }

    public Long getTransSubmitRatio() 
    {
        return transSubmitRatio;
    }
    public void setTaskClassName(String taskClassName) 
    {
        this.taskClassName = taskClassName;
    }

    public String getTaskClassName() 
    {
        return taskClassName;
    }
    public void setTaskLibName(String taskLibName) 
    {
        this.taskLibName = taskLibName;
    }

    public String getTaskLibName() 
    {
        return taskLibName;
    }
    public void setTaskPartitionNum(Long taskPartitionNum) 
    {
        this.taskPartitionNum = taskPartitionNum;
    }

    public Long getTaskPartitionNum() 
    {
        return taskPartitionNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("taskCode", getTaskCode())
            .append("taskName", getTaskName())
            .append("taskRemark", getTaskRemark())
            .append("sysId", getSysId())
            .append("sysCode", getSysCode())
            .append("sysName", getSysName())
            .append("moduleId", getModuleId())
            .append("moduleCode", getModuleCode())
            .append("moduleName", getModuleName())
            .append("tableId", getTableId())
            .append("tableCode", getTableCode())
            .append("tableName", getTableName())
            .append("taskSql", getTaskSql())
            .append("transSubmitRatio", getTransSubmitRatio())
            .append("taskClassName", getTaskClassName())
            .append("taskLibName", getTaskLibName())
            .append("taskPartitionNum", getTaskPartitionNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
